package com.net.shop.car.manager.api.volley.request.oil;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;

public class OilCardBindRequest extends Request {
	String MemberId;
	String CardNumber;
	String Name;
	public OilCardBindRequest(String MemberId,String CardNumber,String Name) {
		super(Constants.BIND_CARD);
		this.MemberId=MemberId;
		this.CardNumber=CardNumber;
		this.Name=Name;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("member_id", MemberId);
			jsonObject.put("card_number",CardNumber);
			jsonObject.put("holder_name",Name);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
	}

}
